package com.markerhub.Util;

import com.markerhub.Shiro.AccountProfile;
import org.apache.shiro.SecurityUtils;

//获取存储在Shiro里的值
public class ShiroUtil {

    public static AccountProfile getProfile(){
        return (AccountProfile) SecurityUtils.getSubject().getPrincipal();
    }
}
